<?php

namespace Portal\ContractBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Contract
 */
class Contract
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var integer
     */
    private $tutorId;

    /**
     * @var string
     */
    private $content;

    /**
     * @var string
     */
    private $status;

    /**
     * @var \DateTime
     */
    private $createdAt;

    /**
     * @var \DateTime
     */
    private $updatedAt;

    /**
     * @var string
     */
    private $blockDescription;

    /**
     * @var integer
     */
    private $tutorFlag;

    /**
     * @var integer
     */
    private $userFlag;

    /**
     * @var string
     */
    private $createdIp;

    /**
     * @var \Portal\ContractBundle\Entity\User
     */
    private $user;

    /**
     * @var \Portal\ContractBundle\Entity\Lesson
     */
    private $lesson;

    
    /**
     * @var integer
     */
     private $isActive;
     public function getIsActive()
     {
       return $this->isActive;
     }

     public function setIsActive($isActive)
     {
       $this->isActive = $isActive;
     }

         /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set tutorId
     *
     * @param integer $tutorId
     * @return Contract
     */
    public function setTutorId($tutorId)
    {
        $this->tutorId = $tutorId;
    
        return $this;
    }

    /**
     * Get tutorId
     *
     * @return integer 
     */
    public function getTutorId()
    {
        return $this->tutorId;
    }

    /**
     * Set content
     *
     * @param string $content
     * @return Contract
     */
    public function setContent($content)
    {
        $this->content = $content;
    
        return $this;
    }

    /**
     * Get content
     *
     * @return string 
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Set status
     *
     * @param string $status
     * @return Contract
     */
    public function setStatus($status)
    {
        $this->status = $status;
    
        return $this;
    }

    /**
     * Get status
     *
     * @return string 
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set createdAt
     *
     * @param \DateTime $createdAt
     * @return Contract
     */
    public function setCreatedAt($createdAt)
    {
        $this->createdAt = $createdAt;
    
        return $this;
    }

    /**
     * Get createdAt
     *
     * @return \DateTime 
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

    /**
     * Set updatedAt
     *
     * @param \DateTime $updatedAt
     * @return Contract
     */
    public function setUpdatedAt($updatedAt)
    {
        $this->updatedAt = $updatedAt;
    
        return $this;
    }

    /**
     * Get updatedAt
     *
     * @return \DateTime 
     */
    public function getUpdatedAt()
    {
        return $this->updatedAt;
    }

    /**
     * Set blockDescription
     *
     * @param string $blockDescription
     * @return Contract
     */
    public function setBlockDescription($blockDescription)
    {
        $this->blockDescription = $blockDescription;
    
        return $this;
    }

    /**
     * Get blockDescription
     *
     * @return string 
     */
    public function getBlockDescription()
    {
        return $this->blockDescription;
    }

    /**
     * Set tutorFlag
     *
     * @param integer $tutorFlag
     * @return Contract
     */
    public function setTutorFlag($tutorFlag)
    {
        $this->tutorFlag = $tutorFlag;
    
        return $this;
    }

    /**
     * Get tutorFlag
     *
     * @return integer 
     */
    public function getTutorFlag()
    {
        return $this->tutorFlag;
    }

    /**
     * Set userFlag
     *
     * @param integer $userFlag
     * @return Contract
     */
    public function setUserFlag($userFlag)
    {
        $this->userFlag = $userFlag;
    
        return $this;
    }

    /**
     * Get userFlag
     *
     * @return integer 
     */
    public function getUserFlag()
    {
        return $this->userFlag;
    }

    /**
     * Set createdIp
     *
     * @param string $createdIp
     * @return Contract
     */
    public function setCreatedIp($createdIp)
    {
        $this->createdIp = $createdIp;
    
        return $this;
    }

    /**
     * Get createdIp
     *
     * @return string 
     */
    public function getCreatedIp()
    {
        return $this->createdIp;
    }

    /**
     * Set user
     *
     * @param \Portal\ContractBundle\Entity\User $user
     * @return Contract
     */
    public function setUser(\Portal\ContractBundle\Entity\User $user = null)
    {
        $this->user = $user;
    
        return $this;
    }

    /**
     * Get user
     *
     * @return \Portal\ContractBundle\Entity\User 
     */
    public function getUser()
    {
        return $this->user;
    }

    /**
     * Set lesson
     *
     * @param \Portal\ContractBundle\Entity\Lesson $lesson
     * @return Contract
     */
    public function setLesson(\Portal\ContractBundle\Entity\Lesson $lesson = null)
    {
        $this->lesson = $lesson;
    
        return $this;
    }

    /**
     * Get lesson
     *
     * @return \Portal\ContractBundle\Entity\Lesson 
     */
    public function getLesson()
    {
        return $this->lesson;
    }
}